import request from "./request";
//登录
export const getlogin = (params) => request({ url: "login", method: "post", params })
//左侧列表
export const getmenus = () => request({ url: "menus", method: "get", })
//用户
export const getuser = (params) => request({ url: "users", method: "get", params })
//添加用户
export const adduser = (data) => request({ url: "users", method: "post", data })
//编辑
export const edituser = (data) => request({ url: "users/:id", method: "put", data })
